package com.edu.bean;

public class Emp {

    private int empId;//员工id

    private String empName;//员工名字

    private String empSex;//员工性别

    private int empAge;//员工年龄

    private int departId;//部门id

    private Depart myDepart;

    public Depart getMyDepart() {
        return myDepart;
    }

    public void setMyDepart(Depart myDepart) {
        System.out.println("把查询到的部门 填入到了 员工的属性中");
        this.myDepart = myDepart;
    }

    public int getEmpId() {
        return empId;
    }

    public void setEmpId(int empId) {
        this.empId = empId;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getEmpSex() {
        return empSex;
    }

    public void setEmpSex(String empSex) {
        this.empSex = empSex;
    }

    public int getEmpAge() {
        return empAge;
    }

    public void setEmpAge(int empAge) {
        this.empAge = empAge;
    }

    public int getDepartId() {
        return departId;
    }

    public void setDepartId(int departId) {
        this.departId = departId;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "empId=" + empId +
                ", empName='" + empName + '\'' +
                ", empSex='" + empSex + '\'' +
                ", empAge=" + empAge +
                ", departId=" + departId +
                '}';
    }
}
